<template>
    <q-page-sticky position="top" expand class="z-10" :class="背景色" :offset="[0, 36]">
        <template v-if="$slots.default">
            <slot />
        </template>
        <template v-else>
            <a工具栏 v-bind="$attrs" />
        </template>
    </q-page-sticky>
</template>

<script setup>
import a工具栏 from '@/components/a工具栏.vue';
const props = defineProps({
    背景色: {
        type: String,
        default: ""
    },
})
</script>

<style lang="scss" scoped></style>